import request from '@/utils/request'

// 查询控制中心列表
export function listControlcenter(query) {
  return request({
    url: '/business/house/list',
    method: 'get',
    params: query
  })
}

// turnOn
export function turnOn(data) {
  data.onOff = 1;
  return request({
    url: '/business/house/turn',
    method: 'post',
    data: data
  })
}

// turnOn
export function turnOff(data) {
  data.onOff = 0;
  return request({
    url: '/business/house/turn',
    method: 'post',
    data: data
  })
}

